package com.jinsi.mapper;

import com.jinsi.pojo.ScHomePage;
import com.jinsi.pojo.ScUser;
import com.jinsi.pojo.ScUserLoginLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Date : 2022/7/7 18:54
 * 小南不难
 **/
@Mapper
public interface HomePageMapper {

    //查询今日收款总额，今日加入人数，
    ScHomePage getTodayPriceAndCount();

    //已报名人数和预报名人数
    ScHomePage getJoinAndPre();

    //获取近30天流水
    List<ScHomePage> getOneMouthPrice();

    //查询支付方式
    List<Map<String,Object>> getPriceWay();

    //日志查询
    List<ScUserLoginLog> getLoginLog();

    //删除日志
    int delLoginLog(int id);

    //账号信息修改
    int uptUserInfo(ScUser scUser);

    //查询密码
    ScUser getUserpwd(int userId);

    //修改密码
    int uptUserpwd(String userpwd,int userId);
}
